package com.yiheima.extendsdemo2;

public class Test4 {
    public static void main(String[] args) {
        Teacher t = new Teacher("Tom",25, "Java");
        System.out.println(t.getName());
        System.out.println(t.getAge());
        System.out.println(t.getSkill());
    }
}
